<?php /* Smarty version 2.6.16, created on 2013-08-31 20:43:54
         compiled from d:%5Cwww%5Cclient%5Cgetbids/templates/default/modules/testimonial/mytestimonials.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'd:\\www\\client\\getbids/templates/default/modules/testimonial/mytestimonials.tpl', 54, false),array('modifier', 'base64_encode', 'd:\\www\\client\\getbids/templates/default/modules/testimonial/mytestimonials.tpl', 55, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><script type="application/javascript"  src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/add_testimonial.js" ></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.js"></script><link href="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.css" rel="stylesheet" type="text/css" media="all" /><link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/find_job_list.css">'; ?>


<!--Gray box-->
<?php echo '
<script type="text/javascript">
	var GB_ANIMATION = true;
    jQuery(document).ready(function(){
    	jQuery("a.greybox").click(function(){
        var t = this.title || jQuery(this).text() || this.href;
        GB_show("",this.href,425,500);
         return false;
       });
     });
</script>
'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>My Testimonials                  <a  href="<?php echo $this->_tpl_vars['siteroot']; ?>
/testimonials/add_testimonial/" class="btn rF greybox" >POST TESTIMONIAL</a> </h4>
            	 <section class="clear"></section>
                 
                </section>                             
				<?php if ($this->_tpl_vars['msg']): ?> <?php echo $this->_tpl_vars['msg']; ?>
 <?php endif; ?>
                <section class="mainbox_findjobs">
				<section class="tem_manag_box">
                	<dl>
                    	<dt class="col1">Testimonials</dt>
                        <dt class="col2">Posted Date</dt>
                        <dt class="col3">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['testimonialArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                    <dl>
                    	<dd class="col1">
                        	<article><?php echo $this->_tpl_vars['testimonialArray'][$this->_sections['i']['index']]['description']; ?>
 </article>
                        </dd>
                        <dd class="col2"><?php echo ((is_array($_tmp=$this->_tpl_vars['testimonialArray'][$this->_sections['i']['index']]['added_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d") : smarty_modifier_date_format($_tmp, "%d")); ?>
<sup></sup> <?php echo ((is_array($_tmp=$this->_tpl_vars['testimonialArray'][$this->_sections['i']['index']]['added_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%B") : smarty_modifier_date_format($_tmp, "%B")); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['testimonialArray'][$this->_sections['i']['index']]['added_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y") : smarty_modifier_date_format($_tmp, "%Y")); ?>
</dd>
                        <dd class="col3" style="text-align:center;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/testimonials/delete/<?php echo ((is_array($_tmp=$this->_tpl_vars['testimonialArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/mytestimonials/" onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/delete_icon.png" width="20" height="22" alt="Delete Icon" title="Delete Icon"/></a></dd>
                        <section class="clear"></section>
                    </dl>
                    <?php endfor; else: ?>
                    	<div class="error" style="padding:10px;text-align:center;">There are no new testimonial.Write your first testimonial. Please Click on <a  href="<?php echo $this->_tpl_vars['siteroot']; ?>
/testimonials/add_testimonial/" class="greybox" >post your testimonial</a>.</div>
                    <?php endif; ?>
                  		<?php if ($this->_tpl_vars['pagenation']): ?>
                            <section class="pagna">
                            <?php echo $this->_tpl_vars['pagenation']; ?>

                            </section>
                        <?php endif; ?>
                             

                        
                        <section class="clear"></section>
                </section>   
                
                <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>